const REDIS_SESSION_KEY = process.env.REDIS_SESSION_KEY;
const REDIS_HOST = process.env.REDIS_HOST;
const REDIS_PORT = process.env.REDIS_PORT;

const MYSQL_USER = process.env.MYSQL_USER;
const MYSQL_PWD = process.env.MYSQL_PWD;
const MYSQL_DB = process.env.MYSQL_DB;
const MYSQL_HOST = process.env.MYSQL_HOST;
const MYSQL_PORT = process.env.MYSQL_PORT;

const DEFAULT_PAGE_SIZE = 10;
const MAX_PAGE_SIZE = 1000;

const COLUMN_TYPE = {
  STRING: "STRING",
  INT: "INT",
  DECIMAL: "DECIMAL",
  DATETIME: "DATETIME",
  TIMESTAMP: "TIMESTAMP",
};

module.exports = {
  COLUMN_TYPE,

  DEFAULT_PAGE_SIZE,
  MAX_PAGE_SIZE,

  REDIS_PORT,
  REDIS_HOST,
  REDIS_SESSION_KEY,

  MYSQL_HOST,
  MYSQL_PORT,
  MYSQL_USER,
  MYSQL_DB,
  MYSQL_PWD,
};
